package com.acme.bankapp.domain.bank.accounts;

//TODO: define class body
public class SavingAccount extends AbstractAccount {

    public SavingAccount(double amount) {
        super(amount);
    }


    @Override
    public void deposit(double amount) {
        setBalance(getBalance() + amount);
    }


    @Override
    public double maximumAmountToWithdraw() {
        return getBalance();
    }
}
